package com.example.interceptor.service;

import com.example.interceptor.entity.User;
import com.example.interceptor.repository.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;
    public List<User> getAllUser(){
        //获取Goods数据表的所有记录，将记录存放在List中
       List<User> userList=  userMapper.selectList(null);
       return userList;
    }
}
